<div class="page-heading">

    <form class="form-horizontal" role="form">
        <div class="form-group">
            <div class="col-md-3 col-sm-12 col-xs-12 form-group">
                <label class="col-lg-3 col-sm-4 control-label">用户编号:</label>
                <div class="col-lg-9">
                    <input type="text" ng-model="userCode" maxlength="20" class="form-control"/>
                </div>
            </div>
            <div class="col-md-3 col-sm-12 col-xs-12 form-group">
                <label class="col-lg-3 col-sm-4 control-label">手机号:</label>
                <div class="col-lg-9">
                    <input type="text" ng-model="userPhone" maxlength="11" class="form-control"/>
                </div>
            </div>
            <div class="col-md-3 col-sm-12 col-xs-12 form-group">
                <label class="col-lg-3 col-sm-4 control-label">用户姓名:</label>
                <div class="col-lg-9">
                    <input type="text" ng-model="userName" maxlength="100" class="form-control"/>
                </div>
            </div>
            <div class="col-md-3 col-sm-12 col-xs-12 form-group">
                <label class="col-lg-3 col-sm-4 control-label">用户等级:</label>
                <div class="col-lg-9">
                    <select class="form-control" ng-model="userLevel" id="userLevel">
                        <option value="">全部</option>
                        <option value="0">普通用户</option>
                        <option value="1">经理</option>
                        <option value="2">总监</option>
                        <option value="3">总裁</option>
                    </select>
                </div>
            </div>
            <div class="col-md-3 col-sm-12 col-xs-12 form-group">
                <label class="col-lg-3 col-sm-4 control-label">用户状态:</label>
                <div class="col-lg-9">
                    <select class="form-control" ng-model="activeStatus" id="activeStatus">
                        <option value="">全部</option>
                        <option value="1">未激活</option>
                        <option value="2">已激活</option>
                        <option value="3">已注销</option>
                    </select>
                </div>
            </div>
            <!--<div class="col-md-4 col-sm-12 col-xs-12 form-group">-->
            <!--<label class="col-lg-4 col-sm-4 control-label">注册日期:</label>-->
            <!--<div class="col-lg-4">-->
            <!--<input type="text" id="registerStartTime"-->
            <!--onfocus="WdatePicker({errDealMode:1,el:'registerStartTime',dateFmt:'yyyy-MM-dd'})"-->
            <!--class="form-control" placeholder="开始时间" value=""/>-->
            <!--</div>-->
            <!--<div class="col-lg-4">-->
            <!--<input type="text" id="registerEndTime"-->
            <!--onfocus="WdatePicker({errDealMode:1,el:'registerEndTime',dateFmt:'yyyy-MM-dd'})"-->
            <!--class="form-control" placeholder="结束时间" value=""/>-->
            <!--</div>-->
            <!--</div>-->
            <!--<div class="col-md-4 col-sm-12 col-xs-12 form-group">-->
            <!--<label class="col-lg-4 col-sm-4 control-label">激活日期:</label>-->
            <!--<div class="col-lg-4">-->
            <!--<input type="text" id="activateStartTime"-->
            <!--onfocus="WdatePicker({errDealMode:1,el:'activateStartTime',dateFmt:'yyyy-MM-dd'})"-->
            <!--class="form-control" placeholder="开始时间" value=""/>-->
            <!--</div>-->
            <!--<div class="col-lg-4">-->
            <!--<input type="text" id="activateEndTime"-->
            <!--onfocus="WdatePicker({errDealMode:1,el:'activateEndTime',dateFmt:'yyyy-MM-dd'})"-->
            <!--class="form-control" placeholder="结束时间" value=""/>-->
            <!--</div>-->
            <!--</div>-->
            <div class="col-md-2 col-sm-12 col-xs-12 form-group">
                <input name="" type="button" ng-click="customerRecordDraw()" class="btn btn-info" value="查询"/>
            </div>
        </div>
    </form>
</div>

<div class="wrapper">
    <div class="row">
        <div class="col-sm-12">
            <section class="panel panel-body ">
                <table class="table table-striped responsive-utilities jambo_table" id="customerTable">
                    <thead>
                    <tr>
                        <th>用户ID</th>
                        <th>用户名</th>
                        <th>用户姓名</th>
                        <th>手机</th>
                        <th>注册时间</th>
                        <th>状态</th>
                        <th>激活时间</th>
                        <th>用户等级</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    </tbody>
                </table>
            </section>
        </div>
    </div>
</div>

<!-- /modal -->
<div class="modal fade" id="showUserDetail" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true">
    <div class="modal-dialog" style="width: 1100px">
        <div class="modal-content" id="userDetailInfo">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title">
                    会员详情
                </h4>
            </div>
            <div class="modal-body" style="overflow-y:scroll;">
                <h4>基本信息：</h4>
                <div class="filmBasic clearfix">
                    <dl class="clearfix">
                        <dt>用户编号：</dt>
                        <dd>{{userDetail.userCode}}</dd>
                    </dl>
                    <dl class="clearfix">
                        <dt>手机：</dt>
                        <dd>{{userDetail.userPhone}}</dd>
                    </dl>
                    <dl class="clearfix">
                        <dt>姓名：</dt>
                        <dd>{{userDetail.userName}}</dd>
                    </dl>
                    <dl class="clearfix">
                        <dt>激活状态：</dt>
                        <dd>{{getUserActiveStatus(userDetail.userActStatus)}}</dd>
                    </dl>
                    <dl class="clearfix">
                        <dt>用户等级：</dt>
                        <dd>{{getUserLevel(userDetail.userLevel) }}</dd>
                    </dl>
                    <dl class="clearfix">
                        <dt>认证状态：</dt>
                        <dd>{{getUserIdAuth(userDetail.userIdAuth)}}</dd>
                    </dl>
                    <dl class="clearfix">
                        <dt>钱包绑定：</dt>
                        <dd>{{getPacketBound(userDetail.userPacketBound)}}</dd>
                    </dl>
                    <dl class="clearfix">
                        <dt>交易密码：</dt>
                        <dd>{{getUserTradepwdSet(userDetail.userTradepwdSet)}}</dd>
                    </dl>
                </div>
                <h4>积分信息：</h4>
                <div class="filmBasic clearfix">
                    <dl class="clearfix">
                        <dt>原始积分：</dt>
                        <dd>{{userDetail.cpOriginalPoint|number:2}}</dd>
                    </dl>
                    <dl class="clearfix">
                        <dt>月消积分：</dt>
                        <dd>{{userDetail.cpCapitalPoint|number:2}}</dd>
                    </dl>
                    <dl class="clearfix">
                        <dt>动态积分：</dt>
                        <dd>{{userDetail.cpDynamicPoint|number:2}}</dd>
                    </dl>
                    <dl class="clearfix">
                        <dt>消费积分：</dt>
                        <dd>{{userDetail.cpCustPoint|number:2}}</dd>
                    </dl>
                    <dl class="clearfix">
                        <dt>期消积分：</dt>
                        <dd>{{userDetail.cpMaturedPoint|number:2}}</dd>
                    </dl>
                    <dl class="clearfix">
                        <dt>静态积分：</dt>
                        <dd>{{userDetail.cpStaticPoint|number:2}}</dd>
                    </dl>
                </div>
                <div class="form-group">
                    <div class="col-lg-offset-2 col-lg-10" id="companyDepositoryErrorMsg"></div>
                </div>
                <div style="text-align:center; padding-top:20px;">
                    <input name="" type="button" ng-click="updateUserDetail(userDetail.tid)" class="btn btn-info"
                           value="确定"/>

                </div>
            </div>
        </div><!-- /.modal-content -->
    </div>
</div>

<div id="showTransferModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true">
    <div class="modal-dialog" style="width: 1100px">
        <div class="modal-content" id="TransferDetailInfo">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title">积分划拨</h4>
            </div>
            <div class="modal-body" style="overflow-y:scroll;">
                <h4>划拨信息：</h4>
                <div class="filmBasic clearfix">
                    <dl class="clearfix">
                        <dt>用户编号：</dt>
                        <dd>{{transferDetail.cpUserCode}}</dd>
                    </dl>
                    <dl class="clearfix">
                        <dt>积分类型：</dt>
                        <dd>
                            <select id="pointType" class="form-control" ng-model="transferDetail.pointType" required>
                                <option value="1">消费币</option>
                                <option value="2">激活币</option>
                                <option value="3">电子积分</option>
                            </select>
                        </dd>
                    </dl>
                    <dl class="clearfix">
                        <dt>积分：</dt>
                        <dd><input id="cpPointAmount" type="text" ng-model="transferDetail.cpPointAmount"
                                   class="textIn"/></dd>
                    </dl>
                </div>
                <div class="form-group">
                    <div class="col-lg-offset-2 col-lg-10" id="TransferErrorMsg">
                    </div>
                </div>
                <div style="text-align:center; padding-top:20px;">
                    <input name="" type="button" ng-click="transferPoint(transferDetail.cpUser)" class="btn btn-info"
                           value="确定"/>
                </div>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
</div>

<div id="showPwdResetModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true">
    <div class="modal-dialog" style="width: 1100px">
        <div class="modal-content" id="showPwdResetModalInfo">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title">密码重置</h4>
            </div>
            <div class="modal-body" style="overflow-y:scroll;">
                <div class="filmBasic clearfix">
                    <dl class="clearfix">
                        <dt>用户编号：</dt>
                        <dd>{{transferDetail.cpUserCode}}</dd>
                    </dl>
                    <dl class="clearfix">
                        <dt>重置类型：</dt>
                        <dd>
                            <select id="resetType" class="form-control" ng-model="resetModel.pointType" required>
                                <option value="1">登录密码</option>
                                <option value="2">交易密码</option>
                            </select>
                        </dd>
                    </dl>
                </div>
                <div class="form-group">
                    <div class="col-lg-offset-2 col-lg-10" id="pwdRestErrorMsg">
                    </div>
                </div>
                <div style="text-align:center; padding-top:20px;">
                    <input name="" type="button" ng-click="pwdReset()" class="btn btn-info"
                           value="确定"/>
                </div>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
</div>
<!-- /modal -->
<!--<script type="text/javascript" src="/js/pluploadjs/plupload.full.min.js"></script>-->
<script src="../myJs/customer.js"></script>

